package com.qing.demo.netty.service;

import com.qing.demo.netty.domain.MsgAgreement;
import com.qing.demo.netty.redis.Publisher;
import com.qing.demo.netty.redis.RedisUtil;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author caozhipeng
 * @date 2025/8/7
 */
@Service("extServerService")
public class ExtServerService {

    @Resource
    private Publisher publisher;

    @Resource
    private RedisUtil redisUtil;


    public void push(MsgAgreement msgAgreement){
        publisher.pushMessage("netty-push-msgAgreement",msgAgreement);
    }

    public RedisUtil getRedisUtil() {
        return redisUtil;
    }
}
